home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
brent_cc.lha
/
brent_cc
/
Makefile
< prev
next >
Wrap
Makefile
|
1993-08-08
|
826b
|
59 lines
CC=./c++
CCL=./c++l
TOUCH=/usr/att/bin/touch
.SUFFIXES: .cc
MODULES=myenv.cc
LAMODULES=zeroin.cc fminbr.cc
# Rules
.cc.o:
$(CC) $*.cc
.cc: $*.cc libla.a
$(CC) $*.cc
$(CCL) $*.o libla.a -o $*
./$*
.o: $*.o libla.a
$(CCL) $*.o libla.a -o $*
./$*
# Primary goal
libserv.a: $(MODULES)
$(CC) $*.cc
ar rv libserv.a $*.o
rm $*.o
ranlib libserv.a
# Linear Algebra Library
lalib: libla.a
libla.a:: LinAlg.h
# Make the library very obsolete
$(TOUCH) 0101010180 $@
libla.a:: $(LAMODULES)
# Compile the source files that have been changed
$(CC) $?
listobj=`echo $? | sed s/.cc/.o/g` ; \
ar rv libla.a $$listobj && \
rm $$listobj
ranlib libla.a
# Verification routines
vvector: vvector.o libla.a
$(CCL) vvector.o libla.a -o vvector
./vvector
# Specific dependent goals
# Dependence rules